﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace QuanLyDaiLy.Model
{
    [Table(Name="PhieuThu")]
    public class CPhieuThu
    {
        #region Properties
        [Column(Name = "MaPhieuThu")]
        public ulong MaPhieuThu { get; set; }

        [Column(Name = "MaDaiLy")]
        public ulong MaDaiLy { get; set; }

        [Column(Name = "SoTienThu")]
        public ulong SoTienThu { get; set; }

        [Column(Name = "NgayThuTien")]
        public DateTime NgayThuTien { get; set; }
        #endregion

        #region Constructor
        public CPhieuThu(ulong madaily, ulong sotienthu, DateTime ngaythutien)
        {
            Initialize(madaily, sotienthu, ngaythutien);
        }

        public void Initialize(ulong madaily, ulong sotienthu, DateTime ngaythutien)
        {
            this.MaDaiLy = madaily;
            this.SoTienThu = sotienthu;
            this.NgayThuTien = ngaythutien;
        }
        #endregion

    }
}
